CC = gcc
CFLAGS = -g -Wall 
CFLAGS += -I../include -I./
#CFLAGS += -D__ENABLE_DEBUG__

KMSG_SER = kmsg_server
TARGET_DIR = /usr/local/bin/

OBJ = kmsg_server.c

$(KMSG_SER):$(OBJ)
	$(CC) $(CFLAGS)  -o $(KMSG_SER) $(OBJ)

install:
	install -m 0755 $(KMSG_SER) $(TARGET_DIR)
clean:
	rm -rf $(KMSG_SER)

